package by.yakusekmaxim.bookgid.services;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import by.yakusekmaxim.bookgid.datamodel.Genre;

public interface GenreService {
	
	Long getCount();

	Genre get(Long id);

    @Transactional
    void saveOrUpdate(Genre genre);

    @Transactional
    void delete(Genre genre);

    @Transactional
    void deleteAll();
    
    @Transactional
    List<Genre> getAll();

}
